{extend name="public:_base" /}

{block name="js"}
<script type="text/javascript">
    $("[name='status']").find("[value='{$Think.get.status}']").attr("selected", true);
</script>
{/block}

{block name="main"}

<div class="user_conver">

    {include file="public:_right"}

    <!-- 应聘中心 -->
    <div class="user_item my_data">
        <!-- 标题 -->
        <div class="user_item_title">
            <i class="glyphicon glyphicon-cog"></i>
            应聘信息 <font>JOBAPPLY INFORMATION</font>
        </div>
        <!-- #标题 -->

        <!-- 内容 -->
        <div class="user_item_cont user_info_cont">

            <form name="" method="get" action="">
                <div class="text-c">
                    <input type="text" name="title" placeholder="{:lang('title')}" style="width:250px" value="{$Think.get.title}" class="input-text">
                    <button name="" class="btn radius btn-success" type="submit">
                        <i class="Hui-iconfont"></i> {:lang('Search consulting')}
                    </button>
                </div>
            </form>

            <div class="cl pd-5 bg-1 bk-gray mt-20">
                <span class="l">
                    <a class="btn radius btn-primary radius" href="{:url(\''.\\think\\Request::instance()->controller().'/index')}">{:lang('All')}</a>
                </span>

                <span>
                    <a class="btn radius btn-default radius" href="{:url(\''.\\think\\Request::instance()->controller().'/index',['status'=>0])}">{:lang('Not viewed')}</a>
                </span>

                <span>
                    <a class="btn radius btn-secondary radius" href="{:url(\''.\\think\\Request::instance()->controller().'/index',['status'=>1])}">{:lang('Viewed')}</a>
                </span>

                <span>
                    <a class="btn radius btn-danger radius" href="{:url(\''.\\think\\Request::instance()->controller().'/index',['status'=>2])}">{:lang('Fail')}</a>
                </span>

                <span class="r">
                    <i class="glyphicon glyphicon-share-alt"></i>
                    {:lang('Total data')}：{$num}<strong></strong>
                </span>
            </div>

            <div class="mt-20 bk-table">
                <table class="table table-border table-bordered table-bg table-hover table-sort">
                    <thead>
                    <tr class="text-c">
                        <th width="100">{:lang('Serial number')}</th>
                        <th width="100">{:lang('title')}</th>
                        <th width="100">{:lang('Create time')}</th>
                        <th width="100">{:lang('operating')}</th>
                    </tr>
                    </thead>
                    <tbody>
                    {volist name="list" id="vo" empty="$_html_empty"}
                    <tr class="text-c va-m">
                        <td>
                            {$i}
                        </td>
                        <td class="text-l">
                            <a href="index-job-detailed-id-{$vo.jid}-navid-{$vo.navid}.html">{$vo.title}</a>
                        </td>
                        <td>
                            {$vo.create_time}
                        </td>
                        <td class="td-manage">
                            <!--<a style="text-decoration:none" class="btn radius btn-xs btn-danger"-->
                            <!--onClick="del(this,'{:url(\''.\\think\\Request::instance()->controller().'/del',['id'=>$vo.id])}','10001')"-->
                            <!--href="{:url(\''.\\think\\Request::instance()->controller().'/del',['id'=>$vo.id])}"-->
                            <!--title="{:lang('delete')}">{:lang('delete')}</a>-->
                            <a class="btn radius btn-xs btn-danger" href="javascript:;" onclick="del('{$vo.id}')"
                               title="{:lang('delete')}">{:lang('delete')}</a>
                        </td>
                    </tr>
                    {/volist}
                    </tbody>
                </table>
            </div>

            {$list->render()}

        </div>
        <!-- #内容 -->

    </div>
    <!-- #应聘中心 -->

</div>

{/block}